package cn.kgc.watch.mapper;

import cn.kgc.watch.entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {
    List<Address> selectAll();

    List<Address> selectById(Integer id);

    void update(@Param("address") Address address);

    void delete(Integer id);

    void insert(Address address);

    List<Address> selectByUserId(@Param("userId") Integer userId);

    Address selectAddressById(@Param("id")Integer id);
}